How To return md5 salted hash? [closed]

Posted by user1790627 on Programmers See other posts from Programmers or by user1790627
Published on 2012-11-01T18:08:07Z Indexed on 2012/11/01 23:19 UTC
Read the original article Hit count: 116

Filed under:
|

Here is the function and this function returns value for sessionGuid. Example, User1 login and join chat then the value of User1 for sessionGuid is. 1 User2 value for sessionGuid is. 2 User3 . value .3 i want this function return md5 salted hash to avoid hacks.

function get_current_online_session_login() {
        $oSrvSec = &App::getModuleService('Account', 'Security');
        $login = $oSrvSec->getCurrentUserLogin();
        $aReq = getRow(App::getT('online_session'), 'online_session_user = "' . $login . '"');
//      return $aReq['online_session_login'];
        return $aReq['online_session_id'];
    }

© Programmers or respective owner

Related posts about php

Related posts about database